import request from '@/utils/request'

// 查询对司机的评价列表
export function listToDriver(query) {
  return request({
    url: '/message/toDriver/list',
    method: 'get',
    params: query
  })
}

// 查询对司机的评价详细
export function getToDriver(id) {
  return request({
    url: '/message/toDriver/' + id,
    method: 'get'
  })
}

// 新增对司机的评价
export function addToDriver(data) {
  return request({
    url: '/message/toDriver',
    method: 'post',
    data: data
  })
}

// 修改对司机的评价
export function updateToDriver(data) {
  return request({
    url: '/message/toDriver',
    method: 'put',
    data: data
  })
}

// 删除对司机的评价
export function delToDriver(id) {
  return request({
    url: '/message/toDriver/' + id,
    method: 'delete'
  })
}
